package com.example.book_shop_java.dao;

import com.example.book_shop_java.bean.Car;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarDao {
    public List<Car> getAllCar(int wx_userid);
    public int plusNum(int car_id);
    public int reduceNum(int car_id);
    public int deleteCar(int car_id);
    public int updateCarState(int car_id,Boolean state);
    public int updateAllCarState(int check_state,int wx_userid);
    public int getCheckState();
    public int updateCheckState();
    public List<Car> getCheckedGood(int wx_userid);
    public List<Car> getCarGood(int car_id);
    public int addOrder(@Param("wx_userid") int wx_userid, @Param("goodImg") String goodImg, @Param("address") String address, @Param("timeOut") String timeOut, @Param("goodName") String goodName, @Param("goodNum") int goodNum, @Param("goodPrice") String goodPrice);
}

